Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement PinCode and UnpinCode proposal client handlers #707

Merged
merged 4 commits into from
Dec 23, 2021
Merged

Conversation

orkunkl
Copy link
Contributor

@orkunkl orkunkl commented Dec 20, 2021

No description provided.

@orkunkl orkunkl requested a review from alpe December 20, 2021 11:20
@codecov
Copy link

codecov bot commented Dec 20, 2021

Codecov Report

Merging #707 (c43453d) into master (9a17505) will decrease coverage by 0.97%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #707      +/-   ##
==========================================
- Coverage   60.21%   59.24%   -0.98%     
==========================================
  Files          48       48              
  Lines        5361     5449      +88     
==========================================
  Hits         3228     3228              
- Misses       1903     1991      +88     
  Partials      230      230              
Impacted Files Coverage Δ
x/wasm/client/cli/gov_tx.go 0.00% <0.00%> (ø)

Copy link
Contributor

@alpe alpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good 👍
I have not had a chance to test the commands manually but will do tomorrow

@@ -14,4 +14,6 @@ var ProposalHandlers = []govclient.ProposalHandler{
govclient.NewProposalHandler(cli.ProposalMigrateContractCmd, rest.MigrateProposalHandler),
govclient.NewProposalHandler(cli.ProposalUpdateContractAdminCmd, rest.UpdateContractAdminProposalHandler),
govclient.NewProposalHandler(cli.ProposalClearContractAdminCmd, rest.ClearContractAdminProposalHandler),
govclient.NewProposalHandler(cli.ProposalPinCodesCmd, rest.PinCodeProposalHandler),
govclient.NewProposalHandler(cli.ProposalUnpinCodesCmd, rest.UnpinCodeProposalHandler),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

cmd.Flags().String(cli.FlagDeposit, "", "Deposit of proposal")
cmd.Flags().String(cli.FlagProposal, "", "Proposal file path (if this path is given, other proposal flags are ignored)")
// type values must match the "ProposalHandler" "routes" in cli
cmd.Flags().String(flagProposalType, "", "Permission of proposal, types: store-code/instantiate/migrate/update-admin/clear-admin/text/parameter_change/software_upgrade")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not scope of this PR: this flag looks odd. It should be "Type" instead of "Permission" here and contain all possible types. I am unsure if it is still needed

Copy link
Contributor

@alpe alpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good PR but 3 fixes required to make it work. I missed them when I 👁️ at it the first time.

x/wasm/client/cli/gov_tx.go Outdated Show resolved Hide resolved
x/wasm/client/cli/gov_tx.go Outdated Show resolved Hide resolved
x/wasm/client/cli/gov_tx.go Outdated Show resolved Hide resolved
Co-authored-by: Alexander Peters <[email protected]>
@orkunkl orkunkl requested a review from alpe December 23, 2021 06:54
@alpe
Copy link
Contributor

alpe commented Dec 23, 2021

Thanks 💐

@alpe alpe merged commit e7f41f2 into master Dec 23, 2021
@alpe alpe deleted the pin_cli_rest branch December 23, 2021 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants